<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl"><{$tit}>管理</div>
                            </div>
                            <!-- <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">区域 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <select name="data[area_id]"
                                            data-am-selected="{searchBox: 1, btnSize: 'sm'}">
                                        <option value="0">顶级区域</option>
                                        <?php if (isset($data_list)): foreach ($data_list as $val): ?>
                                            <option value="<?= $val['id'] ?>"
                                                <?= $info['area_id'] == $val['id'] ? 'selected' : '' ?>
                                                <?= $info['id'] == $val['id'] ? 'disabled' : '' ?>
                                                <?= $val['level'] < 3 ? 'disabled' : '' ?>>
                                                <?= $val['name_h1'] ?></option>
                                        <?php endforeach; endif; ?>
                                    </select>
                                </div>
                            </div> -->
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> <{$tit}>名称 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[name]" value="<{$info.name}>"
                                        required>
                                </div>
                            </div>

                            <div class="am-form-group am-padding-top-sm">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require"> 后台用户名 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="text" class="tpl-form-input" name="data[username]" value="<{$info.admin.username}>"
                                        required>
                                    <small>后台用户名</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label"> 后台用户密码 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="password" class="tpl-form-input" name="data[password]" value="">
                                    <small>后台用户密码</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">排序 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <input type="number" min="0" class="tpl-form-input" name="data[sort]" value="<{$info.sort}>"
                                        required>
                                    <small>数字越小越靠前</small>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label">状态 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <{html_radios1("data[status]",$statusRadio,$info.status)}>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    $(function () {

        /**
         * 表单验证提交
         * @type {*}
         */
        $('#my-form').superForm();

    });
</script>
